package com.cqsxxy.dao;

import com.cqsxxy.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author rock
 * @since 2021-12-24
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select sys_id from user where sys_name=#{sysName}")
    int selectIdByUserName(String sysName);

    List<String> selectPermissionByName(String sysName);

    List<User> selectByName(String userName);

}
